﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
using Lab2.ViewModels;
using Model;
using Point = Model.Point;

namespace Lab2
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            var eq = new Equation(1, 2);
            var cauchySystem = new CauchySystem(eq, new Point(), 0, 1);

            var view = new CauchySystemViewModel(cauchySystem) {Step = 0.01, Epsilon = 0.001};
            var window = new MainWindow() {DataContext = view};
            window.Show();
        }
    }
}
